package com.xbongbong.paas.pojo.vo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class IsActiveAliyunCallVO {
    boolean isActiveAliyunCall;
    /*
     * 阿里：1坐席Agent，2技能组组长Manager，3管理员Admin
     */
    int role;

    /**
     * 供应商
     */
    private Integer facilitators;

    /**
     * 是否开启双呼配置
     */
    private Integer openDoubleCall;

    public IsActiveAliyunCallVO() {
        this.isActiveAliyunCall = false;
        this.role = -1;
    }
    public boolean IsActiveAliyunAndHasRole(){
        if(!isActiveAliyunCall){
            return false;
        }
        if(role==1||role==2||role==3){
            return true;
        }
        return false;
    }

}
